<html>
<head>
<title>pcre2-config specification</title>
</head>
<body bgcolor="#FFFFFF" text="#00005A" link="#0066FF" alink="#3399FF" vlink="#2222BB">
<h1>pcre2-config man page</h1>
<p>
Return to the <a href="index.html">PCRE2 index page</a>.
</p>
<p>
This page is part of the PCRE2 HTML documentation. It was generated
automatically from the original man page. If there is any nonsense in it,
please consult the man page, in case the conversion went wrong.
<br>
<ul>
<li><a name="TOC1" href="#SEC1">SYNOPSIS</a>
<li><a name="TOC2" href="#SEC2">DESCRIPTION</a>
<li><a name="TOC3" href="#SEC3">OPTIONS</a>
<li><a name="TOC4" href="#SEC4">SEE ALSO</a>
<li><a name="TOC5" href="#SEC5">AUTHOR</a>
<li><a name="TOC6" href="#SEC6">REVISION</a>
</ul>
<h2><a name="SEC1" href="#TOC1">SYNOPSIS</a></h2>
<p>
<b>pcre2-config  [--prefix] [--exec-prefix] [--version]</b>
<b>             [--libs8] [--libs16] [--libs32] [--libs-posix]</b>
<b>             [--cflags] [--cflags-posix]</b>
</p>
<h2><a name="SEC2" href="#TOC1">DESCRIPTION</a></h2>
<p>
<b>pcre2-config</b> returns the configuration of the installed PCRE2 libraries
and the options required to compile a program to use them. Some of the options
apply only to the 8-bit, 16-bit, or 32-bit libraries, respectively, and are not
available for libraries that have not been built. If an unavailable option is
encountered, the "usage" information is output.
</p>
<h2><a name="SEC3" href="#TOC1">OPTIONS</a></h2>
<p>
<b>--prefix</b>
Writes the directory prefix used in the PCRE2 installation for
architecture-independent files (<i>/usr</i> on many systems, <i>/usr/local</i> on
some systems) to the standard output.
</p>
<p>
<b>--exec-prefix</b>
Writes the directory prefix used in the PCRE2 installation for
architecture-dependent files (normally the same as <b>--prefix</b>) to the
standard output.
</p>
<p>
<b>--version</b>
Writes the version number of the installed PCRE2 libraries to the standard
output.
</p>
<p>
<b>--libs8</b>
Writes to the standard output the command line options required to link
with the 8-bit PCRE2 library (<b>-lpcre2-8</b> on many systems).
</p>
<p>
<b>--libs16</b>
Writes to the standard output the command line options required to link
with the 16-bit PCRE2 library (<b>-lpcre2-16</b> on many systems).
</p>
<p>
<b>--libs32</b>
Writes to the standard output the command line options required to link
with the 32-bit PCRE2 library (<b>-lpcre2-32</b> on many systems).
</p>
<p>
<b>--libs-posix</b>
Writes to the standard output the command line options required to link with
PCRE2's POSIX API wrapper library (<b>-lpcre2-posix</b> <b>-lpcre2-8</b> on many
systems).
</p>
<p>
<b>--cflags</b>
Writes to the standard output the command line options required to compile
files that use PCRE2 (this may include some <b>-I</b> options, but is blank on
many systems).
</p>
<p>
<b>--cflags-posix</b>
Writes to the standard output the command line options required to compile
files that use PCRE2's POSIX API wrapper library (this may include some
<b>-I</b> options, but is blank on many systems).
</p>
<h2><a name="SEC4" href="#TOC1">SEE ALSO</a></h2>
<p>
<b>pcre2(3)</b>
</p>
<h2><a name="SEC5" href="#TOC1">AUTHOR</a></h2>
<p>
This manual page was originally written by Mark Baker for the Debian GNU/Linux
system. It has been subsequently revised as a generic PCRE2 man page.
</p>
<h2><a name="SEC6" href="#TOC1">REVISION</a></h2>
<p>
Last updated: 22 February 2025
<br>
<p>
Return to the <a href="index.html">PCRE2 index page</a>.
</p>
